package cn.iocoder.yudao.module.tms.controller.admin.companyaccountperiod.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 公司账期信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CompanyAccountPeriodRespVO {

    @Schema(description = "主键", example = "1024")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "公司ID", example = "2048")
    @ExcelProperty("公司ID")
    private Long companyId;

    @Schema(description = "授信额度（元）", example = "500000")
    @ExcelProperty("授信额度（元）")
    private BigDecimal creditLimit;

    @Schema(description = "授信预警金额（元）", example = "550000")
    @ExcelProperty("授信预警金额（元）")
    private BigDecimal creditAlertAmount;

    @Schema(description = "当前合作金额（元）", example = "200000")
    @ExcelProperty("当前合作金额（元）")
    private BigDecimal currentCreditUsed;

    @Schema(description = "账期天数", example = "40")
    @ExcelProperty("账期天数")
    private Integer billingCycleDays;

    @Schema(description = "账期提前提醒天数", example = "7")
    @ExcelProperty("提前提醒天数")
    private Integer billingAlertDays;

    @Schema(description = "账期开始日期", example = "2025-01-01")
    @ExcelProperty("账期开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate billingStartDate;

    @Schema(description = "账期到期日期", example = "2025-02-10")
    @ExcelProperty("账期到期日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate billingDueDate;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
